<?php
/**
 * <https://y.st./>
 * Copyright © 2016 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => '<code>ErrorDocument</code> pages',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2016/10/30.jpg" alt="A cat and a chicken hanging out in a driveway" class="framed-centred-image" width="811" height="480"/>
<p>
	Current countdowns:
</p>
<ul>
	<li>249 scheme-specific $a[URI]-parsing classes to write and add to <a href="https://git.vola7ileiax4ueow.onion/y.st./include.d/releases">include.d</a></li>
	<li>1 free elective left in my associate degree program</li>
	<li>4 free electives left in my bachelor degree program</li>
</ul>
<p>
	Topics for essays that I want to write outside of school:
</p>
<ul>
<li>How the $a[GFDL] isn&apos;t a free license, and is effectively nonfree even when invariant sections aren&apos;t used</li>
<li>How the telephone number system is screwy</li>
<li>How postpaid mobile plans are bad for customers</li>
<li>How connections using &quot;untrusted&quot; $a[TLS] certificates are more trustworthy than connections without any $a[TLS] certificate at all</li>
<li>The importance of free software</li>
<li>The importance of free media</li>
</ul>
<p>
	I printed my resume, then walked it in to my former place of employment.
	Hopefully I can get a temporary job there.
</p>
<p>
	I made it today&apos;s project to complete the <code>ErrorDocument</code> pages for this website, but I quickly ran into issues.
	To better explain what the Web browser did wrong to cause the $a[HTTP] <code>400</code> error, I mentioned that the most probable cause was the $a[SNI] bug present in most Web browsers, then included the full article on the error page.
	I obviously couldn&apos;t link to the actual page that the article appears on, after all, because broken Web clients will cause the <code>400</code> error to appear there as well.
	The next issue was the $a[CSS].
	To make the line between the error message and the optional article clear, $a[CSS] is a must, but if a Web client that has the $a[SNI] bug reaches that error page, it&apos;ll trigger the error again with each of the style sheets.
	I could try to hack in a way to include the style sheets as part of the page, just like how I included the article in the page, but doing that is a bit complicated.
	I could put a toggle in the webpage template, despite only needing this feature for one page.
	If active, the $a[CSS] would be sanitized and included directly in the $a[XHTML].
	Otherwise, it would be included as external style sheets.
	It seems very hacky to use such a toggle though when it&apos;s only needed on one page.
	The other option though is to set up a conditional in the template that specifically treats the <code>400</code> page as special.
	That seems even <strong>*more*</strong> hacky though.
	That said, the <code>400</code> page in many ways <strong>*is*</strong> special, so it makes some sense to treat it like that.
	In the end, that&apos;s what I decided to do.
</p>
<p>
	I&apos;ve attempted to place Vanessa&apos;s order again.
	This time, I tried to use the email address that I have on file with Discover during the order process, but the order form rejected that email address.
	There&apos;s nothing that I can do about that, so I just used the same email address that I used last time.
	I have little doubt that this order will fail just like the last one did.
</p>
<p>
	My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
</p>
END
);
